/*
Copyright [2020] [https://www.xiaonuo.vip]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：

1.请不要删除和修改根目录下的LICENSE文件。
2.请不要删除和修改Snowy源码头部的版权声明。
3.请保留源码和相关描述文件的项目出处，作者声明等。
4.分发源码时候，请注明软件出处 https://gitee.com/xiaonuobase/snowy
5.在修改包名，模块名称，项目代码等时，请注明软件出处 https://gitee.com/xiaonuobase/snowy
6.若您的项目无法满足以上几点，可申请商业授权，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
package vip.xiaonuo.facedoor.modular.devicehistory.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import vip.xiaonuo.core.pojo.base.entity.BaseEntity;

import java.util.Date;

/**
 * 终端历史数据表
 *
 * @author 胡鹏达
 * @date 2022-07-22 16:27:05
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("dw_device_history")
@ApiModel(value = "内部人员通行记录")
public class DeviceHistory extends BaseEntity {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(hidden = true)
    private Long id;

    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @ApiModelProperty(hidden = true)
    private String delFlag;

    /**
     * 设备ID
     */
    @ApiModelProperty(hidden = true)
    private Long deviceBaseId;

    /**
     * 人员ID
     */
    @ApiModelProperty(value = "人员ID")
    private Long memberId;

    /**
     * 所属部门
     */
    @ApiModelProperty(hidden = true)
    private Long orgId;

    /**
     * 人员类型0：内部员工，1：外来人员
     */
    @ApiModelProperty(hidden = true)
    private Integer memberType;
    /**
     * 通行抓拍图
     */
    @Excel(name = "存入抓拍图", width = 20, type = 2, height = 30)
    @ApiModelProperty(value = "抓拍图")
    private String image;

    /**
     * 通行抓拍图
     */
    @Excel(name = "取出抓拍图", width = 20, type = 2, height = 30)
    @ApiModelProperty(value = "抓拍图")
    private String image2;


    /**
     * 人员姓名
     */
    @Excel(name = "人员姓名", width = 20)
    @ApiModelProperty(value = "人员姓名")
    private String memberName;


    @TableField(value = "member_job_num")
    @Excel(name = "人员工号", width = 20)
    @ApiModelProperty(value = "人员工号")
    private String memberJobNum;
    /**
     * 体温
     */
    @Excel(name = "人员体温", width = 20)
    @ApiModelProperty(value = "人员体温")
    private String temperature;

    @Excel(name = "设备名称", width = 20)
    @ApiModelProperty(value = "设备名称")
    private String deviceName;


    /**
     * 设备通行时间
     */
    @Excel(name = "设备通行时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "设备通行时间 yyyy-MM-dd HH:mm:ss")
    private Date deviceCurrentDate;

    /**
     * 访问类型 1-人脸记录  2-刷卡记录  3-二维码记录,4-掌静脉
     */
    @ApiModelProperty(hidden = true)
    private Integer type;

    /**
     * 验证类型
     */
    @ApiModelProperty(hidden = true)
    private Integer verifyType;

    /**
     * 卡号
     */
    @ApiModelProperty(value = "卡号")
    private String icNum;

    /**
     * 二维码信息
     */
    @ApiModelProperty(hidden = true)
    private String erCode;


    /**
     * 健康码
     */
    @ApiModelProperty(hidden = true)
    private String healthCode;

    /**
     * 健康码颜色
     */
    @ApiModelProperty(hidden = true)
    private String healthColor;

    /**
     * 上传状态：0：未上传，1：已上传
     */
    @ApiModelProperty(hidden = true)
    private Integer status;

    /**
     * 备注信息
     */
    @ApiModelProperty(hidden = true)
    private String remarks;

    @ApiModelProperty(hidden = true)
    private Boolean pushFlag;

    @ApiModelProperty(hidden = true)
    private Integer direction;

    private String cabinetNo;

    @Excel(name = "设备通行时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date putTime;

    @Excel(name = "设备通行时间", databaseFormat = "yyyy-MM-dd HH:mm:ss", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date takeTime;

    private String takeType;
}
